﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.Message.Notifications" %>
<input type="hidden" name="Rety" value="0" id="Rety" />
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div id="MessagesBox" style="display:<%=delflag==1?"block":"none" %>">
					<div class="MessagePanel4">
						<img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;" alt=""/>
						<div id="MessageText"><%=GetText("C1004")%></div>
					</div>
				</div>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("M0020")%></h1>
							</div>
							<div class="submenuN_button">
								<!--div class="layer_contentA" style="background-color:#fff">
									<h4>My italki</h4>
									<div class="layer_contentA5"><a href="/">My Home</a><br /><a href="/public/profile.htm">My Profile</a><br /><a href="/my/settings/generalsettings.htm">Settings</a>
									<hr size="1" color="#cccccc" /><a href="/my/my_finance.htm">My Finance</a><br /><a href="/my/my_courses.htm">My Sessions</a><br /><a href="/my/my_feedback.htm">My Feedback</a>
									<hr size="1" color="#cccccc" /><strong>> <%=GetText("M0020")%></strong><br /><a href="/contacts/mycontacts.htm">Requests</a><br /><a href="/widgets/badges.htm">Widgets</a><br /><a href="/contacts/mycontacts.htm">My Friends</a><br /><a href="/my/my_group.htm">My Groups</a>
									<hr size="1" color="#cccccc" /><a href="/my/my_courses.htm">My Courses</a><br /><a href="/my/my_answers.htm">My Q&A</a><br /><a href="/my/my_answers.htm">My Knowledge</a><br /><a href="/my/my_answers.htm">My Documents</a><br /><a href="/my/my_answers.htm">My Posts</a></div>
								</div-->
							</div>
						</div>
					</div>
				</div>
				<div>
					<ul class="sort_sel">
						<li class="first " style="cursor:pointer"><span><a href="/mail/inbox.htm">Inbox</a></span> </li>
						<li class="" style="cursor:pointer"><span><a href="/mail/outbox.htm">Sent Messages</a></span></li>
						<li class="selATags" style="cursor:pointer"><span><a href="/mail/notifications.htm">Notifications</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="/mail/blackboard.htm">Blackboard</a></span></li>
						<li class="" style="cursor:pointer"><span><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/mail/compose.htm">Compose new message</a><%}else{ %><a href="#" onclick="NotAffirm()">Compose new message</a><%} %></span></li>
					</ul>
					<div class="clear"></div>
					<!--popular latest-->
				</div>
				<div class="Center9001n">
					<div class="Center9001common">
						<div class="Center9001Content">
							<div class="notification_area">
							<%if (NotifiesDay1.Count > 0)
							{ %>
							<div style="margin-bottom:15px">
							<asp:Repeater ID="repeaterday1" runat="server">
							    <HeaderTemplate>
								<h3><%= NotifiesDay1[0].CreateDate.ToShortDateString() %></h3>
								</HeaderTemplate>
								<ItemTemplate>
										<div class="notification_list_one">
											<div class="notifi_one_left"><%# GetText(DataBinder.Eval(Container.DataItem, "CateID").ToString(), HttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "varreplace").ToString()).Split('\n'))%></div>
											<div class="notifi_one_mid grey12"><%# DataBinder.Eval(Container.DataItem, "CreateDate")%></div>
											<div class="notifi_one_right"><a id="<%# DataBinder.Eval(Container.DataItem, "id")%>" href="#" onclick="DelNotify(this.id)"><img src="/Images/board_delete.gif" alt="<%=GetText("C0050")%>" border="0" /></a></div>
											<div class="clear"></div>
										</div>
								</ItemTemplate>
								<FooterTemplate>
								</FooterTemplate>
							</asp:Repeater>
							</div>
							<%} %>
							<%if (NotifiesDay2.Count > 0)
							{%>
							<div style="margin-bottom:15px">
							<asp:Repeater ID="repeaterday2" runat="server">
								<HeaderTemplate>
									<h3><%= NotifiesDay2[0].CreateDate.ToShortDateString() %></h3>
								</HeaderTemplate>
								<ItemTemplate>
										<div class="notification_list_one">
											<div class="notifi_one_left"><%# GetText(DataBinder.Eval(Container.DataItem, "CateID").ToString(), HttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "varreplace").ToString()).Split('\n'))%></div>
											<div class="notifi_one_mid grey12"><%# DataBinder.Eval(Container.DataItem, "CreateDate")%></div>
											<div class="notifi_one_right"><a id="<%# DataBinder.Eval(Container.DataItem, "id")%>" href="#" onclick="DelNotify(this.id)"><img src="/Images/board_delete.gif" alt="<%=GetText("C0050")%>" border="0" /></a></div>
											<div class="clear"></div>
										</div>
								</ItemTemplate>
								<FooterTemplate>
								</FooterTemplate>
							</asp:Repeater>
							</div>
							<%} %>
							<%if (NotifiesDay3.Count > 0)
							{%>
							<div style="margin-bottom:15px">
							<asp:Repeater ID="repeaterday3" runat="server">
								<HeaderTemplate>
									<h3><%= NotifiesDay3[0].CreateDate.ToShortDateString() %></h3>
								</HeaderTemplate>
								<ItemTemplate>
										<div class="notification_list_one">
											<div class="notifi_one_left"><%# GetText(DataBinder.Eval(Container.DataItem, "CateID").ToString(), HttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "varreplace").ToString()).Split('\n'))%></div>
											<div class="notifi_one_mid grey12"><%# DataBinder.Eval(Container.DataItem, "CreateDate")%></div>
											<div class="notifi_one_right"><a id="<%# DataBinder.Eval(Container.DataItem, "id")%>" href="#" onclick="DelNotify(this.id)"><img src="/Images/board_delete.gif" alt="<%=GetText("C0050")%>" border="0" /></a></div>
											<div class="clear"></div>
										</div>
								</ItemTemplate>
								<FooterTemplate>
								</FooterTemplate>
							</asp:Repeater>
							</div>
							<%} %>
							<asp:Repeater ID="repeatertotal" runat="server">
								<HeaderTemplate>
								</HeaderTemplate>
								<ItemTemplate>
										<div class="notification_list_one">
											<div class="notifi_one_left"><%# GetText(DataBinder.Eval(Container.DataItem, "CateID").ToString(), HttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "varreplace").ToString()).Split('\n'))%></div>
											<div class="notifi_one_mid grey12"><%# DataBinder.Eval(Container.DataItem, "CreateDate")%></div>
											<div class="notifi_one_right"><a id="<%# DataBinder.Eval(Container.DataItem, "id")%>" href="#" onclick="DelNotify(this.id)"><img src="/Images/board_delete.gif" alt="<%=GetText("C0050")%>" border="0" /></a></div>
											<div class="clear"></div>
										</div>
								</ItemTemplate>
								<FooterTemplate>
								</FooterTemplate>
							</asp:Repeater>
							<%if ((NotifiesTotal == null || NotifiesTotal.Count == 0) && (NotifiesDay1 == null || NotifiesDay1.Count == 0) && (NotifiesDay2 == null || NotifiesDay2.Count == 0) && (NotifiesDay3 == null || NotifiesDay3.Count == 0))
							{%>
							<div id="divDelOp" style=" text-align:center"><%=GetText("ML306")%></div>
							<%} %>
							</div>
						</div>
					</div>
					<div class="center9001left"></div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script type="text/javascript">
	var MemberNo="<%=MemberNo %>";
</script>
